//
//  LabelUtil.h
//  YiJuZhangShou
//
//  Created by URANUS on 16/3/12.
//  Copyright © 2016年 Uranus. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    TitleLabelTag = 1500,
    UnitLabelTag = 1501
} LabelUtilTag;

@interface LabelUtil : NSObject

/**
 *  @author X
 *
 *  加载下方带横条的label
 *
 *  @param backView 要添加label的父view
 *  @param edge     label距离父view edge
 *  @param barColor 横条颜色
 *
 *  @return 带横条的label
 */
+(UILabel *)loadLabelWithBarViewWithBackView:(UIView *)backView
                               withTitleEdge:(UIEdgeInsets)edge
                                 andBarColor:(UIColor *)barColor;

/**
 *  @author X
 *
 *  带标题的label(标题在左，内容在右，默认标题和内容字体颜色和大小相同)
 *
 *  @param backView   要添加label的父view
 *  @param title      标题
 *  @param titleColor 标题颜色
 *  @param titleFont  标题字体
 *
 *  @return 内容label
 */
+(UILabel *)loadLabelWithTitleLabelWithBackView:(UIView *)backView
                                      withTitle:(NSString *)title
                                 withTitleColor:(UIColor *)titleColor
                                   andTitleFont:(UIFont *)titleFont;

/**
 *  @author X
 *
 *  加载带标题和单位的label
 *
 *  @param title    标题
 *  @param unit     单位
 *  @param label    Label
 *  @param backView 父view
 */
+ (void)loadLabelWithTitle:(NSString *)title
                  withUnit:(NSString *)unit
                 withLabel:(UILabel *)label
               andBackView:(UIView *)backView;

@end
